XMLElement.AttributeCount Property
Syntax
AttributeCount as Integer
The number of attributes this element contains.